VBS基础篇 您所在的位置:网站首页 byte转换成字符串 博图 VBS基础篇

VBS基础篇

2023-08-07 10:30| 来源: 网络整理| 查看: 265

ValueDescription

Byte

Byte value

Integer

Integer value

Long

Long integer value

Single

Single-precision floating-point value

Double

Double-precision floating-point value

Currency

Currency value

Decimal

Decimal value

Date

Date or time value

String

Character string value

Boolean

Boolean value; True or False

Empty

Uninitialized

Null

No valid data

Actual type name of an object

Object

Generic object

Unknown

Unknown object type

Nothing

Object variable that doesn't yet refer to an object instance

Error

Error

 以上可以在QTP帮助文档中找到

关于类型转换:

Cbool

变量转换成布尔值

Cbyte

变量转换为0到255之间的整数

Ccur、Cdbl、Csng

变量转换为浮点数值,前者精确到小数点后四位,后两者要更加精确,范围大的多

Cdate

变量转换为日期值

Cint、Clng

变量转换为整数,后者的范围比前者要大的多

Cstr

变量转换为字符串

 判断一个变量是否是数字:

 IsNumeric(expression)如果expression是数字和数字字符串则返回 TRUE,否则返回 FALSE。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有